package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.ApppptDao;
import com.chengxiaoxiao.dao.impl.ApppptDaoImpl;
import com.chengxiaoxiao.domain.Appppt;
import com.chengxiaoxiao.service.ApppptService;

import java.util.List;

public class ApppptServiceImpl implements ApppptService {
    private ApppptDao dao = new ApppptDaoImpl();

    @Override
    public void add(Appppt appppt) {
        dao.add(appppt);
    }

    @Override
    public void update(Appppt appppt) {
        dao.update(appppt);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);

    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Appppt getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }
}
